"""
@File: settings.py
@Project: 约个球
@Author: zhangjian
@Time: 2022.8.22 21:52
@Description: None
"""
# 连接
DEBUG = True
HOST = "127.0.0.1"
PORT = 8000
SECRET_KEY = "123456"
EXPIRES_IN = 600

# 使用数据库+使用什么引擎取连接：//用户名:密码@数据库主机/数据库
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@192.168.50.88/yueball?charset=utf8'
SQLALCHEMY_TRACK_MODIFI = True
SQLALCHEMY_TRACK_MODIFICATIONS = True

# 高德api
GEO_URL = "https://restapi.amap.com/v3/geocode/geo?&key=113c2493098813fd7fc2e6df3acdc563"
REGEO_URL = "https://restapi.amap.com/v3/geocode/regeo?&key=113c2493098813fd7fc2e6df3acdc563&radius=1000&extensions=all"
GEO_DISTANCE = 30

# 邮件
MAIL_SERVER = "smtp.qq.com"  # smtp服务器地址
MAIL_PORT = 465  # smtp服务器端口
MAIL_USE_SSL = True  # 启动ssl加密
MAIL_USE_TLS = False
MAIL_USERNAME = "dami_zhang@foxmail.com"  # 登录的邮箱
MAIL_PASSWORD = "jhbqvxxpytipbjid"  # 授权码
